package com.example.java2e.Entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Driver {
    @Id
    private String id; // 司机工号
    private String id_card;
    private Long driver_condition;
    private String name;
    private String tel;
    private Long gender;
    private Long age;
    private String date_time;

    public Driver(){}

    public Long getDriver_condition() {
        return driver_condition;
    }

    public void setDriver_condition(Long driver_condition) {
        this.driver_condition = driver_condition;
    }

    public Driver(String id, String id_card, Long driver_condition, String name, String tel, Long gender, Long age, String date_time) {
        this.id = id;
        this.id_card = id_card;
        this.driver_condition = driver_condition;
        this.name = name;
        this.tel = tel;
        this.gender = gender;
        this.age = age;
        this.date_time = date_time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Long getGender() {
        return gender;
    }

    public void setGender(Long gender) {
        this.gender = gender;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public String getDate_time() {
        return date_time;
    }

    public void setDate_time(String date_time) {
        this.date_time = date_time;
    }
}
